package com.zjj.provider.service;

import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.service.GenericException;
import org.apache.dubbo.rpc.service.GenericService;

// GenericService是dubbo提供的接口
@Service(interfaceName = "com.zjj.DemoService", version = "generic")
public class GenericDemoService implements GenericService {

@Override
public Object $invoke(String s, String[] strings, Object[] objects) throws GenericException {
    System.out.println("执行了generic服务");

    return "执行的方法是" + s;
}
}
